package com.zx.map.dao;

import java.util.List;

import org.springframework.dao.DataAccessException;

import com.zx.map.dao.model.SystemBar;
import com.zx.map.dao.model.SystemBarExample;

public interface SystemBarDao {

	/**
	 * 新增
	 * 
	 * @param SystemBar
	 * @return
	 * @throws DataAccessException
	 */
	public String add(SystemBar systemBar) throws DataAccessException;

	/**
	 * 更新
	 * 
	 * @param SystemBar
	 * @return
	 * @throws DataAccessException
	 */
	public String update(SystemBar systemBar) throws DataAccessException;

	/**
	 * 删除
	 * 
	 * @param SystemBar
	 * @throws DataAccessException
	 */
	public void delete(SystemBar systemBar) throws DataAccessException;

	/**
	 * 分页查询
	 * 
	 * @param pageSize
	 * @param pageBegin
	 * @param example
	 * @return
	 * @throws DataAccessException
	 */
	public List<SystemBar> getPageByExample(int pageSize, int pageBegin,
			SystemBarExample example) throws DataAccessException;
	/**
	 * 根据Model查找List
	 * @param pageSize
	 * @param pageBegin
	 * @param example
	 * @return
	 * @throws DataAccessException
	 */
	public List<SystemBar> getListByExample(SystemBarExample example) throws DataAccessException;
	
	/**
	 * 查找条数
	 * 
	 * @param example
	 * @return
	 * @throws DataAccessException
	 */
	public int countByExample(SystemBarExample example) throws DataAccessException;
	/**
	 * 根据单Key查找Model
	 * 
	 * @param example
	 * @return
	 * @throws DataAccessException
	 */
	public SystemBar selectByPrimaryKey(String key) throws DataAccessException;
	/**
	 * 
	 * @param pageSize
	 * @param pageBegin
	 * @param example
	 * @return
	 * @throws DataAccessException
	 */
	public List<SystemBar> getPageByBatchNo(int pageSize, int pageBegin,
			SystemBarExample example) throws DataAccessException;
	/**
	 * 
	 * @param example
	 * @return
	 * @throws DataAccessException
	 */
	public int countByBatchNoExample(SystemBarExample example) throws DataAccessException;
}